<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <title>修改信息</title>
    <link rel="icon" href="/images/favicon.ico" sizes="32x32" />
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <link rel="stylesheet" href="/css/pg_btn.css">
    <script type="text/javascript" src="./js/jquery-1.3.2.min.js"></script>
    <script src="lib/layui/layui.js"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
</head>

<body>

<div class="x-body">
    <form class="layui-form" action="/updateTimingSheet" method="post"  id="f_auto" accept-charset="UTF-8">
        <div class="layui-form-item">
            <label for="Id" class="layui-form-label">
                <span class="f_sp">编号</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Id" name="Id"
                       autocomplete="off" th:value="${s.id}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="Email" class="layui-form-label">
                <span class="f_sp">邮箱</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Email" name="Email"
                       autocomplete="off" th:value="${s.email}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="Name" class="layui-form-label">
                <span class="f_sp">姓名</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Name" name="Name"
                       autocomplete="off" th:value="${s.name}" class="layui-input">
            </div>
        </div>


        <div class="layui-form-item">
            <label for="Time" class="layui-form-label">
                <span class="f_sp">发送时间</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Time" name="Time"
                       autocomplete="off" th:value="${s.time}" class="layui-input">
            </div>
        </div>



        <div class="layui-form-item">
            <label for="Daily" class="layui-form-label">
                <span class="">是否每日发送</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Daily" name="Daily"
                       autocomplete="off" th:value="${s.daily}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="Weekly" class="layui-form-label">
                <span class="">是否每周发送</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Weekly" name="Weekly"
                       autocomplete="off" th:value="${s.weekly}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="Sql" class="layui-form-label">
                <span class="">查询语句</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Sql" name="Sql"
                       autocomplete="off" th:value="${s.sql}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="Col" class="layui-form-label">
                <span class="">列数</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="Col" name="Col"
                       autocomplete="off" th:value="${s.col}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="S" class="layui-form-label">
                <span class="">列名</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="S" name="S"
                       autocomplete="off" th:value="${s.s}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item" id="btn_xg">
            <button  class="layui-btn"  id="btn_on" lay-filter="updateForm" lay-submit="">
                修改
            </button>
        </div>
    </form>
</div>

<script>
    // layui.use(['form','layer','laydate'], function(){
    //     var form = layui.form,
    //         $ = layui.jquery,
    //         laydate = layui.laydate;
    //     form.on('submit(updateForm)', function(obj,sId) {
    //
    //         $.ajax({
    //             url: '/updateStudent',
    //             type: "post",
    //             data:{"sId":sId},
    //             success:function(data){
    //                 layer.msg('修改成功', {icon: 1, time: 3000});
    //                 setTimeout(function () {window.location.href='/findStudent';},2000);
    //
    //             },
    //             error:function(){
    //                 console.log($("#sId").val());
    //                 layer.msg('修改失败',{icon:0,time:3000});
    //                 setTimeout(function () {window.location.href='/findStudent';},2000);
    //             }
    //         });
    //     })
    //
    // });

</script>
</body>
</html>
